package com.runen.wnhz.runen.data.entity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2018-05-02.
 */

public class CatalogListEntity implements Serializable {

    /**
     * * @return string re    =>0
     * @return string info  =>课程下架或不存在
     * @return string re    =>1
     * @return string info  =>获取成功
     * @return object data  =>目录信息
     * @return object data.title  =>目录名字
     * @return object data.next_list.0.lid  =>课程id
     * @return object data.next_list.0.tid  =>章节id
     * @return object data.next_list.0.nid  =>小节id
     * @return object data.next_list.0.name  =>小节名称
     * @return object data.next_list.0.time  =>小节时长
     */

    /**
     * {
     * "title": "搜索功能",
     * "next_list": [
     * {
     * "lid": "2",
     * "tid": "1",
     * "nid": "1",
     * "name": "贝壳",
     * "time": "3"
     * },
     * {
     * .....
     * }
     * ]
     * }
     */
    private String title;
    private String try_look;
    private List<PartBean> next_list;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTry_look() {
        return try_look;
    }

    public void setTry_look(String try_look) {
        this.try_look = try_look;
    }

    public List<PartBean> getNext_list() {
        return next_list;
    }

    public void setNext_list(List<PartBean> next_list) {
        this.next_list = next_list;
    }

    @Override
    public String toString() {
        return "ChapterBean{" +
                "title='" + title + '\'' +
                ", try_look='" + try_look + '\'' +
                ", next_list=" + next_list +
                '}';
    }

    public class PartBean implements Serializable {
        private String lid;
        private String tid;
        private String nid;
        private String name;
        private String time;

        public String getLid() {
            return lid;
        }

        public void setLid(String lid) {
            this.lid = lid;
        }

        public String getTid() {
            return tid;
        }

        public void setTid(String tid) {
            this.tid = tid;
        }

        public String getNid() {
            return nid;
        }

        public void setNid(String nid) {
            this.nid = nid;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getTime() {
            return time;
        }

        public void setTime(String time) {
            this.time = time;
        }

        @Override
        public String toString() {
            return "PartBean{" +
                    "lid='" + lid + '\'' +
                    ", tid='" + tid + '\'' +
                    ", nid='" + nid + '\'' +
                    ", name='" + name + '\'' +
                    ", time='" + time + '\'' +
                    '}';
        }
    }
}
